<?php
require_once('ChooseFactory.php');
require_once('OneChooseProduct.php');
// error_reporting(E_ALL || ~E_NOTICE);
class Client
{
	private $chooseFactory;
	private $paper;

	public function __construct()
	{
		$this->chooseFactory=new ChooseFactory();
		$chooseObj = new OneChooseProduct();
		$chooseObj->setPaperNum(2);
		$chooseObj->setQuestionNum(3);
		$chooseObj->setDifficulty(0.21);
		$chooseObj->setRate(0.2);
		$chooseObj->setErrorZone(0.05);
		$this->paper['choose']=$this->chooseFactory->doFactory($chooseObj);
	}

	public function getPaper()
	{
		return empty($this->paper)?array():$this->paper;
	}
}

$client=new Client();
var_dump($client->getPaper());